import parseTemplateToTokens from './parseTemplateToTokens'
import renderTmeplate from './renderTemplate'

window.myTemplate = {
    render(templateStr, data) {
        const tokens = parseTemplateToTokens(templateStr)

        return renderTmeplate(tokens, data)
    }
}